<?php

declare(strict_types=1);

namespace App\CustHub\Mapper;


use App\CustHub\Model\ChAddFriendConfig;
use Mine\Abstracts\AbstractMapper;

class ActiveAddFriendConfigMapper extends AbstractMapper
{
    public function assignModel()
    {
        $this->model = ChAddFriendConfig::class;
    }

    public function checkUid($uid): bool
    {
        return $this->model::query()->where('uid', $uid)->exists();
    }
}